<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CyberSpace | 控制中心</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
    <style>
        :root {
            --primary: #00f7ff;
            --secondary: #0066ff;
            --accent: #00ff9d;
            --bg: #0a0e1a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            min-height: 100vh;
            background: var(--bg);
            color: #fff;
            overflow-x: hidden;
            position: relative;
        }

        #particle-canvas {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 0;
        }

        .container {
            position: relative;
            z-index: 2;
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1fr 2fr;
            padding: 4rem;
            gap: 3rem;
            opacity: 0;
            animation: fadeIn 1s 2s forwards;
        }

        .side-panel {
            position: sticky;
            top: 4rem;
            height: calc(100vh - 8rem);
            border-right: 2px solid rgba(0, 255, 255, 0.1);
            padding-right: 3rem;
        }

        .nav-links {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .time-display {
            font-size: 2.5rem;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 3rem;
            opacity: 0;
            transform: translateX(-50px);
            animation: slideRight 1s 2.2s forwards;
        }

        .main-content {
            position: relative;
            padding: 4rem 0;
        }

        .hero-text {
            position: relative;
            margin-bottom: 6rem;
            overflow: hidden;
        }

        .hero-text h1 {
            font-size: 5rem;
            line-height: 1;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            opacity: 0;
            animation: titleEntrance 1.5s 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            perspective: 2000px;
        }

        .card {
            background: rgba(255, 255, 255, 0.02);
            padding: 2.5rem;
            border-radius: 20px;
            border: 1px solid rgba(0, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            transform-style: preserve-3d;
            cursor: pointer;
            transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(100px);
            animation: cardEntrance 1s 3s forwards;
        }

        .card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, var(--primary), transparent);
            animation: rotate 4s linear infinite;
            opacity: 0.1;
        }

        .card::after {
            content: '';
            position: absolute;
            inset: 2px;
            background: rgba(10, 14, 26, 0.8);
            border-radius: 18px;
        }

        .card-content {
            position: relative;
            z-index: 1;
        }

        .card h3 {
            color: var(--accent);
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .card p {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }

        .cta-button {
            position: relative;
            padding: 1.5rem 3rem;
            font-size: 1.2rem;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            border: none;
            color: white;
            border-radius: 50px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            transform: scale(0.9);
            opacity: 0;
            animation: buttonPop 1s 3.5s forwards;
            text-decoration: none;
            display: inline-block;
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.2),
                    transparent
            );
            transition: 0.5s;
        }

        .neon-glow {
            position: fixed;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--primary), transparent 60%);
            filter: blur(80px);
            opacity: 0.1;
            animation: float 12s infinite ease-in-out;
        }

        .loader {
            position: fixed;
            width: 100%;
            height: 100%;
            background: var(--bg);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: loaderOut 1s 2s forwards;
        }

        .loader-box {
            width: 80px;
            height: 80px;
            border: 3px solid var(--primary);
            position: relative;
            animation: rotate 2s linear infinite;
        }

        .loader-box::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            width: 100%;
            height: 100%;
            border: 3px solid transparent;
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: rotate 1.5s ease-in-out infinite;
        }

        @keyframes fadeIn {
            to { opacity: 1 }
        }

        @keyframes titleEntrance {
            0% {
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                opacity: 0;
            }
            100% {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
                opacity: 1;
            }
        }

        @keyframes cardEntrance {
            to { opacity: 1; transform: translateY(0) }
        }

        @keyframes buttonPop {
            0% { transform: scale(0.5); opacity: 0 }
            60% { transform: scale(1.1) }
            100% { transform: scale(1); opacity: 1 }
        }

        @keyframes rotate {
            to { transform: rotate(360deg) }
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) }
            25% { transform: translate(100px, -50px) }
            50% { transform: translate(-80px, 80px) }
            75% { transform: translate(120px, 30px) }
        }

        @keyframes loaderOut {
            to { opacity: 0; visibility: hidden }
        }

        @keyframes slideRight {
            to { opacity: 1; transform: translateX(0) }
        }

        .card:hover {
            transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
            box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
        }

        .cta-button:hover {
            transform: scale(1.05);
            box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
        }

        .cta-button:hover::before {
            left: 100%;
        }

        @media (max-width: 1200px) {
            .container {
                grid-template-columns: 1fr;
                padding: 2rem;
            }

            .side-panel {
                position: static;
                height: auto;
                border-right: none;
                padding-right: 0;
                border-bottom: 2px solid rgba(0, 255, 255, 0.1);
                padding-bottom: 2rem;
                margin-bottom: 2rem;
            }

            .hero-text h1 {
                font-size: 3.5rem;
            }

            .card-grid {
                grid-template-columns: 1fr;
            }

            .nav-links {
                flex-direction: row;
                flex-wrap: wrap;
            }

            .cta-button {
                width: 100%;
                text-align: center;
            }
        }
    </style>
</head>
<body>
<canvas id="particle-canvas"></canvas>
<div class="neon-glow" style="top:20%; left:30%"></div>
<div class="neon-glow" style="top:60%; right:20%"></div>

<div class="loader">
    <div class="loader-box"></div>
</div>

<div class="container">
    <div class="side-panel">
        <div class="time-display" id="time"></div>
        <nav class="nav-links">
            <a href="/new" class="cta-button">探索更多</a>
            <a href="/login" class="cta-button">返回登录</a>
        </nav>
    </div>

    <div class="main-content">
        <div class="hero-text">
            <h1>欢迎回来，管理员！</h1>
        </div>

        <div class="card-grid">
            <div class="card">
                <div class="card-content">
                    <h3>安全监控</h3>
                    <p>实时系统状态监测与安全预警</p>
                </div>
            </div>
            <div class="card">
                <div class="card-content">
                    <h3>数据分析</h3>
                    <p>多维度数据可视化分析平台</p>
                </div>
            </div>
            <div class="card">
                <div class="card-content">
                    <h3>用户管理</h3>
                    <p>权限管理与操作日志追踪</p>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    // 粒子背景初始化（同上...）
    // 时间显示（同上...）
    // 卡片交互效果（同上...）

    // 保留原有功能代码
    function initParticles() {
        const canvas = document.getElementById('particle-canvas');
        const renderer = new THREE.WebGLRenderer({ canvas, alpha: true });
        const scene = new THREE.Scene();
        const camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);

        const geometry = new THREE.BufferGeometry();
        const vertices = [];
        for (let i = 0; i < 5000; i++) {
            vertices.push(
                Math.random() * 2 - 1,
                Math.random() * 2 - 1,
                Math.random() * 2 - 1
            );
        }
        geometry.setAttribute('position', new THREE.Float32BufferAttribute(vertices, 3));

        const material = new THREE.PointsMaterial({
            size: 0.005,
            color: 0x00ffff,
            transparent: true,
            opacity: 0.5
        });

        const particles = new THREE.Points(geometry, material);
        scene.add(particles);

        camera.position.z = 1.5;

        function animate() {
            requestAnimationFrame(animate);
            particles.rotation.x += 0.0001;
            particles.rotation.y += 0.0001;
            renderer.render(scene, camera);
        }

        function resize() {
            camera.aspect = window.innerWidth / window.innerHeight;
            camera.updateProjectionMatrix();
            renderer.setSize(window.innerWidth, window.innerHeight);
        }
        window.addEventListener('resize', resize);
        resize();
        animate();
    }
    initParticles();

    function updateTime() {
        const timeElement = document.getElementById('time');
        const now = new Date();
        timeElement.innerHTML = now.toLocaleTimeString('zh-CN', {
            hour: '2-digit',
            minute: '2-digit',
            second: '2-digit',
            hour12: false
        });
    }
    setInterval(updateTime, 1000);
    updateTime();

    document.querySelectorAll('.card').forEach(card => {
        card.addEventListener('mousemove', (e) => {
            const rect = card.getBoundingClientRect();
            const x = e.clientX - rect.left;
            const y = e.clientY - rect.top;
            const centerX = rect.width / 2;
            const centerY = rect.height / 2;

            card.style.transform = `
                perspective(1000px)
                rotateX(${-(y - centerY) * 0.05}deg)
                rotateY(${(x - centerX) * 0.05}deg)
                translateY(-10px)
            `;
        });

        card.addEventListener('mouseleave', () => {
            card.style.transform = 'translateY(0)';
        });
    });

    window.addEventListener('scroll', () => {
        const scrolled = window.pageYOffset;
        document.documentElement.style.setProperty('--scroll', scrolled * 0.5 + 'px');
    });
</script>
</body>
</html>